package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by ghost on 2018/3/16.
 */
@Entity
@Table(name = "m_ope_d", schema = "dm", catalog = "qmsprd")
public class MOpeD {
    private int opeKey;
    private String unqSeqId;
    private Timestamp etlTimestamp;
    private String etlEventNode;
    private String etlEventName;
    private String etlEvtSeqId;
    private String opeId;
    private String opeVer;
    private String opeDsc;
    private Integer shopKeyFk;
    private String shopId;
    private String procId;
    private Integer eqptGpKeyFk;
    private String eqptGpId;
    private String eqptRunMode;
    private Integer opeSeqNo;
    private String pepLvl;
    private String upLoadId;
    private String dnLoadId;
    private String wkCentId;
    private String wkCentDsc;
    private String evtCate;
    private String evtUser;
    private Timestamp evtTimestamp;
    private String evtNote;
    private String opeType;
    private String mesOpeFlg;
    private String opeProcType;
    private String opeDefFormat;
    private String groupName;
    private String validFlg;

    @Id
    @Column(name = "ope_key")
    public int getOpeKey() {
        return opeKey;
    }

    public void setOpeKey(int opeKey) {
        this.opeKey = opeKey;
    }

    @Basic
    @Column(name = "unq_seq_id")
    public String getUnqSeqId() {
        return unqSeqId;
    }

    public void setUnqSeqId(String unqSeqId) {
        this.unqSeqId = unqSeqId;
    }

    @Basic
    @Column(name = "etl_timestamp")
    public Timestamp getEtlTimestamp() {
        return etlTimestamp;
    }

    public void setEtlTimestamp(Timestamp etlTimestamp) {
        this.etlTimestamp = etlTimestamp;
    }

    @Basic
    @Column(name = "etl_event_node")
    public String getEtlEventNode() {
        return etlEventNode;
    }

    public void setEtlEventNode(String etlEventNode) {
        this.etlEventNode = etlEventNode;
    }

    @Basic
    @Column(name = "etl_event_name")
    public String getEtlEventName() {
        return etlEventName;
    }

    public void setEtlEventName(String etlEventName) {
        this.etlEventName = etlEventName;
    }

    @Basic
    @Column(name = "etl_evt_seq_id")
    public String getEtlEvtSeqId() {
        return etlEvtSeqId;
    }

    public void setEtlEvtSeqId(String etlEvtSeqId) {
        this.etlEvtSeqId = etlEvtSeqId;
    }

    @Basic
    @Column(name = "ope_id")
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Basic
    @Column(name = "ope_ver")
    public String getOpeVer() {
        return opeVer;
    }

    public void setOpeVer(String opeVer) {
        this.opeVer = opeVer;
    }

    @Basic
    @Column(name = "ope_dsc")
    public String getOpeDsc() {
        return opeDsc;
    }

    public void setOpeDsc(String opeDsc) {
        this.opeDsc = opeDsc;
    }

    @Basic
    @Column(name = "shop_key_fk")
    public Integer getShopKeyFk() {
        return shopKeyFk;
    }

    public void setShopKeyFk(Integer shopKeyFk) {
        this.shopKeyFk = shopKeyFk;
    }

    @Basic
    @Column(name = "shop_id")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "proc_id")
    public String getProcId() {
        return procId;
    }

    public void setProcId(String procId) {
        this.procId = procId;
    }

    @Basic
    @Column(name = "eqpt_gp_key_fk")
    public Integer getEqptGpKeyFk() {
        return eqptGpKeyFk;
    }

    public void setEqptGpKeyFk(Integer eqptGpKeyFk) {
        this.eqptGpKeyFk = eqptGpKeyFk;
    }

    @Basic
    @Column(name = "eqpt_gp_id")
    public String getEqptGpId() {
        return eqptGpId;
    }

    public void setEqptGpId(String eqptGpId) {
        this.eqptGpId = eqptGpId;
    }

    @Basic
    @Column(name = "eqpt_run_mode")
    public String getEqptRunMode() {
        return eqptRunMode;
    }

    public void setEqptRunMode(String eqptRunMode) {
        this.eqptRunMode = eqptRunMode;
    }

    @Basic
    @Column(name = "ope_seq_no")
    public Integer getOpeSeqNo() {
        return opeSeqNo;
    }

    public void setOpeSeqNo(Integer opeSeqNo) {
        this.opeSeqNo = opeSeqNo;
    }

    @Basic
    @Column(name = "pep_lvl")
    public String getPepLvl() {
        return pepLvl;
    }

    public void setPepLvl(String pepLvl) {
        this.pepLvl = pepLvl;
    }

    @Basic
    @Column(name = "up_load_id")
    public String getUpLoadId() {
        return upLoadId;
    }

    public void setUpLoadId(String upLoadId) {
        this.upLoadId = upLoadId;
    }

    @Basic
    @Column(name = "dn_load_id")
    public String getDnLoadId() {
        return dnLoadId;
    }

    public void setDnLoadId(String dnLoadId) {
        this.dnLoadId = dnLoadId;
    }

    @Basic
    @Column(name = "wk_cent_id")
    public String getWkCentId() {
        return wkCentId;
    }

    public void setWkCentId(String wkCentId) {
        this.wkCentId = wkCentId;
    }

    @Basic
    @Column(name = "wk_cent_dsc")
    public String getWkCentDsc() {
        return wkCentDsc;
    }

    public void setWkCentDsc(String wkCentDsc) {
        this.wkCentDsc = wkCentDsc;
    }

    @Basic
    @Column(name = "evt_cate")
    public String getEvtCate() {
        return evtCate;
    }

    public void setEvtCate(String evtCate) {
        this.evtCate = evtCate;
    }

    @Basic
    @Column(name = "evt_user")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "evt_timestamp")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Basic
    @Column(name = "evt_note")
    public String getEvtNote() {
        return evtNote;
    }

    public void setEvtNote(String evtNote) {
        this.evtNote = evtNote;
    }

    @Basic
    @Column(name = "ope_type")
    public String getOpeType() {
        return opeType;
    }

    public void setOpeType(String opeType) {
        this.opeType = opeType;
    }

    @Basic
    @Column(name = "mes_ope_flg")
    public String getMesOpeFlg() {
        return mesOpeFlg;
    }

    public void setMesOpeFlg(String mesOpeFlg) {
        this.mesOpeFlg = mesOpeFlg;
    }

    @Basic
    @Column(name = "ope_proc_type")
    public String getOpeProcType() {
        return opeProcType;
    }

    public void setOpeProcType(String opeProcType) {
        this.opeProcType = opeProcType;
    }

    @Basic
    @Column(name = "ope_def_format")
    public String getOpeDefFormat() {
        return opeDefFormat;
    }

    public void setOpeDefFormat(String opeDefFormat) {
        this.opeDefFormat = opeDefFormat;
    }

    @Basic
    @Column(name = "group_name")
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Basic
    @Column(name = "VALID_FLG")
    public String getValidFlg() {
        return validFlg;
    }

    public void setValidFlg(String validFlg) {
        this.validFlg = validFlg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MOpeD mOpeD = (MOpeD) o;

        if (opeKey != mOpeD.opeKey) return false;
        if (unqSeqId != null ? !unqSeqId.equals(mOpeD.unqSeqId) : mOpeD.unqSeqId != null) return false;
        if (etlTimestamp != null ? !etlTimestamp.equals(mOpeD.etlTimestamp) : mOpeD.etlTimestamp != null) return false;
        if (etlEventNode != null ? !etlEventNode.equals(mOpeD.etlEventNode) : mOpeD.etlEventNode != null) return false;
        if (etlEventName != null ? !etlEventName.equals(mOpeD.etlEventName) : mOpeD.etlEventName != null) return false;
        if (etlEvtSeqId != null ? !etlEvtSeqId.equals(mOpeD.etlEvtSeqId) : mOpeD.etlEvtSeqId != null) return false;
        if (opeId != null ? !opeId.equals(mOpeD.opeId) : mOpeD.opeId != null) return false;
        if (opeVer != null ? !opeVer.equals(mOpeD.opeVer) : mOpeD.opeVer != null) return false;
        if (opeDsc != null ? !opeDsc.equals(mOpeD.opeDsc) : mOpeD.opeDsc != null) return false;
        if (shopKeyFk != null ? !shopKeyFk.equals(mOpeD.shopKeyFk) : mOpeD.shopKeyFk != null) return false;
        if (shopId != null ? !shopId.equals(mOpeD.shopId) : mOpeD.shopId != null) return false;
        if (procId != null ? !procId.equals(mOpeD.procId) : mOpeD.procId != null) return false;
        if (eqptGpKeyFk != null ? !eqptGpKeyFk.equals(mOpeD.eqptGpKeyFk) : mOpeD.eqptGpKeyFk != null) return false;
        if (eqptGpId != null ? !eqptGpId.equals(mOpeD.eqptGpId) : mOpeD.eqptGpId != null) return false;
        if (eqptRunMode != null ? !eqptRunMode.equals(mOpeD.eqptRunMode) : mOpeD.eqptRunMode != null) return false;
        if (opeSeqNo != null ? !opeSeqNo.equals(mOpeD.opeSeqNo) : mOpeD.opeSeqNo != null) return false;
        if (pepLvl != null ? !pepLvl.equals(mOpeD.pepLvl) : mOpeD.pepLvl != null) return false;
        if (upLoadId != null ? !upLoadId.equals(mOpeD.upLoadId) : mOpeD.upLoadId != null) return false;
        if (dnLoadId != null ? !dnLoadId.equals(mOpeD.dnLoadId) : mOpeD.dnLoadId != null) return false;
        if (wkCentId != null ? !wkCentId.equals(mOpeD.wkCentId) : mOpeD.wkCentId != null) return false;
        if (wkCentDsc != null ? !wkCentDsc.equals(mOpeD.wkCentDsc) : mOpeD.wkCentDsc != null) return false;
        if (evtCate != null ? !evtCate.equals(mOpeD.evtCate) : mOpeD.evtCate != null) return false;
        if (evtUser != null ? !evtUser.equals(mOpeD.evtUser) : mOpeD.evtUser != null) return false;
        if (evtTimestamp != null ? !evtTimestamp.equals(mOpeD.evtTimestamp) : mOpeD.evtTimestamp != null) return false;
        if (evtNote != null ? !evtNote.equals(mOpeD.evtNote) : mOpeD.evtNote != null) return false;
        if (opeType != null ? !opeType.equals(mOpeD.opeType) : mOpeD.opeType != null) return false;
        if (mesOpeFlg != null ? !mesOpeFlg.equals(mOpeD.mesOpeFlg) : mOpeD.mesOpeFlg != null) return false;
        if (opeProcType != null ? !opeProcType.equals(mOpeD.opeProcType) : mOpeD.opeProcType != null) return false;
        if (opeDefFormat != null ? !opeDefFormat.equals(mOpeD.opeDefFormat) : mOpeD.opeDefFormat != null) return false;
        if (groupName != null ? !groupName.equals(mOpeD.groupName) : mOpeD.groupName != null) return false;
        if (validFlg != null ? !validFlg.equals(mOpeD.validFlg) : mOpeD.validFlg != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = opeKey;
        result = 31 * result + (unqSeqId != null ? unqSeqId.hashCode() : 0);
        result = 31 * result + (etlTimestamp != null ? etlTimestamp.hashCode() : 0);
        result = 31 * result + (etlEventNode != null ? etlEventNode.hashCode() : 0);
        result = 31 * result + (etlEventName != null ? etlEventName.hashCode() : 0);
        result = 31 * result + (etlEvtSeqId != null ? etlEvtSeqId.hashCode() : 0);
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (opeVer != null ? opeVer.hashCode() : 0);
        result = 31 * result + (opeDsc != null ? opeDsc.hashCode() : 0);
        result = 31 * result + (shopKeyFk != null ? shopKeyFk.hashCode() : 0);
        result = 31 * result + (shopId != null ? shopId.hashCode() : 0);
        result = 31 * result + (procId != null ? procId.hashCode() : 0);
        result = 31 * result + (eqptGpKeyFk != null ? eqptGpKeyFk.hashCode() : 0);
        result = 31 * result + (eqptGpId != null ? eqptGpId.hashCode() : 0);
        result = 31 * result + (eqptRunMode != null ? eqptRunMode.hashCode() : 0);
        result = 31 * result + (opeSeqNo != null ? opeSeqNo.hashCode() : 0);
        result = 31 * result + (pepLvl != null ? pepLvl.hashCode() : 0);
        result = 31 * result + (upLoadId != null ? upLoadId.hashCode() : 0);
        result = 31 * result + (dnLoadId != null ? dnLoadId.hashCode() : 0);
        result = 31 * result + (wkCentId != null ? wkCentId.hashCode() : 0);
        result = 31 * result + (wkCentDsc != null ? wkCentDsc.hashCode() : 0);
        result = 31 * result + (evtCate != null ? evtCate.hashCode() : 0);
        result = 31 * result + (evtUser != null ? evtUser.hashCode() : 0);
        result = 31 * result + (evtTimestamp != null ? evtTimestamp.hashCode() : 0);
        result = 31 * result + (evtNote != null ? evtNote.hashCode() : 0);
        result = 31 * result + (opeType != null ? opeType.hashCode() : 0);
        result = 31 * result + (mesOpeFlg != null ? mesOpeFlg.hashCode() : 0);
        result = 31 * result + (opeProcType != null ? opeProcType.hashCode() : 0);
        result = 31 * result + (opeDefFormat != null ? opeDefFormat.hashCode() : 0);
        result = 31 * result + (groupName != null ? groupName.hashCode() : 0);
        result = 31 * result + (validFlg != null ? validFlg.hashCode() : 0);
        return result;
    }
}
